package com.chenfei.poi.mapper;

import com.chenfei.poi.domain.DeviceCirculation;
import com.chenfei.poi.request.device.DeviceReq;
import com.chenfei.poi.response.device.DeviceDetailResp;
import com.chenfei.poi.response.device.DeviceTotalCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceCirculationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DeviceCirculation record);

    int insertSelective(DeviceCirculation record);

    DeviceCirculation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DeviceCirculation record);

    int updateByPrimaryKey(DeviceCirculation record);

    int insertDeviceCirculations(@Param("deviceCirculations")List<DeviceCirculation> deviceCirculations);

    DeviceTotalCount selectTotalCount();

    List<DeviceDetailResp> selectDeviceCirculations(DeviceReq deviceReq);
}